{template common/contentheader}
<div class="setcontent">
	<div class="settitle">
		<h3>{lang edit_sharebutton:admin}</h3>
	</div>
	<div class="setform">
		<form class="pzform" method="post" action="{url admin/sharebutton?act=edit&key=$key}" id="addform">
			
			<div class="formgroup">
				<label class="formlabel">{lang admin_operation_sharebutton_name:admin}:</label>
				<div class="formcontrol">
					<input type="text" name="name" id="name" value="$sharebutton['name']"/>
				</div>
				<span class="formhelp">{lang admin_operation_sharebutton_name:admin}</span>
			</div>
			
			<div class="formgroup">
				<label class="formlabel">{lang admin_operation_sharebutton_link:admin}:</label>
				<div class="formcontrol">
					<input type="text" name="link" id="link" value="$sharebutton['link']"/>
				</div>
				<span class="formhelp">{lang admin_operation_sharebutton_link_tip:admin}</span>
			</div>
			
			<div class="formgroup">
				<label class="formlabel">{lang admin_operation_sharebutton_windowsize:admin}:</label>
				<div class="formcontrol">
					<label>{lang width:admin}:</label>
					<input type="text" class="small" name="width"  value="$sharebutton['width']"> 
					<label>{lang height:admin}:</label>
               		<input type="text" class="small" name="height" value="$sharebutton['height']">
				</div>
				<span class="formhelp">{lang admin_operation_sharebutton_windowsize:admin}</span>
			</div>
			
			<div class="formgroup">
				<label class="formlabel">{lang admin_operation_sharebutton_open:admin}:</label>
				<div class="formcontrol">
					<input type="radio" name="open" value="1" {if $sharebutton['open']}checked{/if}>{lang yes:admin}</input>
              		<input type="radio" name="open" value="0" {if !$sharebutton['open']}checked{/if}>{lang no:admin}</input>
				</div>
				<span class="formhelp">{lang admin_operation_sharebutton_open:admin}</span>
			</div>
			<div class="formbuttons">
				<button type="submit" class="btn btn-primary">{lang save:admin}</button>
			</div>
		</form>
	</div>
</div>
{template common/contentfooter}